From: Carlos Garnacho Date: Fri, 1 Dec 2017 19:17:17 +0000 (+0100) Subject: keyboard: Ensure to resize keys after layer change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~84 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=774930f1a172606ac08a7922ff2e957dc53406cc;p=gnome-shell.git keyboard: Ensure to resize keys after layer change The keys possibly need resizing after a (new) layer has been set, there's however calling places that don't. Instead, fold this._redraw() into setActiveLayer(). --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index a430b82e4..67ea7b611 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -684,12 +684,10 @@ var Keyboard = new Lang.Class({ _onLevelChanged: function (level) { this._setActiveLayer(level); - this._redraw(); }, _onGroupChanged: function () { this._setActiveLayer(0); - this._redraw(); }, _onKeyboardGroupsChanged: function(keyboard) { @@ -706,6 +704,7 @@ var Keyboard = new Lang.Class({ } this._current_page = layers[activeLevel]; + this._redraw(); this._current_page.show(); },